bool OwncloudPropagator::isDelayedUploadItem(const SyncFileItemPtr &item) const
{
- const auto checkFileShouldBeEncrypted = [this] (const SyncFileItemPtr &item) -> bool {
- const auto path = item->_file;
- const auto slashPosition = path.lastIndexOf('/');
- const auto parentPath = slashPosition >= 0 ? path.left(slashPosition) : QString();
-
- SyncJournalFileRecord parentRec;
- bool ok = _journal->getFileRecord(parentPath, &parentRec);
- if (!ok) {
- return false;
- }
-
- const auto accountPtr = account();
+ Q_UNUSED(item)
- if (!parentRec.isValid() ||
- !parentRec.isE2eEncrypted()) {
- return false;
- }
-
- return true;
- };
-
- return account()->capabilities().bulkUpload() && !_scheduleDelayedTasks && !item->isEncrypted() && _syncOptions.minChunkSize() > item->_size
- && !isInBulkUploadBlackList(item->_file) && !checkFileShouldBeEncrypted(item);
+ return false;
}
void OwncloudPropagator::setScheduleDelayedTasks(bool active)
}
void testDirUploadWithDelayedAlgorithm() {
+ QSKIP("bulk upload is disabled");
+
FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"bulkupload", "1.0"} } } });
}
void testDirUploadWithDelayedAlgorithmWithNewChecksum() {
+ QSKIP("bulk upload is disabled");
+
FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
fakeFolder.setServerVersion(QStringLiteral("32.0.0"));
fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"bulkupload", "1.0"} } } });
*/
void testErrorsWithBulkUpload()
{
+ QSKIP("bulk upload is disabled");
+
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"bulkupload", "1.0"} } } });
*/
void testNetworkErrorsWithBulkUpload()
{
+ QSKIP("bulk upload is disabled");
+
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"bulkupload", "1.0"} } } });
void testNetworkErrorsWithSmallerBatchSizes()
{
+ QSKIP("bulk upload is disabled");
+
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"bulkupload", "1.0"} } } });
void testLocalInvalidMtimeCorrectionBulkUpload()
{
+ QSKIP("bulk upload is disabled");
+
const auto INVALID_MTIME = QDateTime::fromSecsSinceEpoch(0);
const auto RECENT_MTIME = QDateTime::fromSecsSinceEpoch(1743004783); // 2025-03-26T16:59:43+0100